@import "common.less";
@import "../icons/iconfont.css";

@borde-color: #e9e9e9;
@primary-color: #16a1e0;
body,
html {
  position: relative;
  height: 100%;
  background-color: #fff;
  overflow-x: hidden;
}

.content {
  position: relative;
  z-index: 999;
  width: 750 * @rem;
  margin: 0 auto;
}

.header {
  color: #fff;
  width: 750 * @rem;
  height: 90 * @rem;
  line-height: 90 * @rem;
  background-color: #16a1e0;
  margin: 0 auto;
  position: relative;
  .btnback {
    .fontSize(16px);
    position: absolute;
    top: 50%;
    left: 15 * @rem;
    transform: translateY(-50%);
    color: #fff;
  }
  h2 {
    text-align: center;
    color: #fff;
    .fontSize(16px);
    line-height: 90 * @rem;
  }
  .rule {
    .fontSize(14px);
    height: 100%;
    position: absolute;
    top: 50%;
    right: 20 * @rem;
    transform: translateY(-50%);
    color: #fff;
  }
}

.upload {
  height: 100%;
  width: 750 * @rem;
  margin: 0 auto;
  background-color: #fff;

}

.info-item {
  .info-item-title {
    .fontSize(14px);
    height: 80 * @rem;
    line-height: 80 * @rem;
    text-indent: 30 * @rem;
    background-color: #f0eff5;
    color: #666;
  }
  .info-item-form {
    width: 100%;
    margin-bottom: 20 * @rem;
    .form-item {
      height: 80 * @rem;
      line-height: 80 * @rem;
      padding: 0 50 * @rem 0 30 * @rem;
      border-bottom: 1px solid @borde-color;
      margin-bottom: 20 * @rem;
      position: relative;
      .form-item__label {
        .fontSize(14px);
        float: left;
        width: 150 * @rem;
        height: 100%;
        padding-left: 30 * @rem;
        box-sizing: border-box;
      }
      .form-item__content {
        .fontSize(14px);
        margin-left: 150 * @rem;
        height: 100%;
        overflow: hidden;
        position: relative;
        padding-left: 20 * @rem;
        .iconfont {
          .fontSize(16px);
          position: absolute;
          right: 5%;
          top: 50%;
          transform: translateY(-50%);
          color: #ccc;
        }
      }
      input {
        height: 100%;
        width: 100%;
        box-sizing: border-box;
        text-indent: 20 * @rem;
        border-radius: 5 * @rem;
        outline: none;
        padding: 0 0 0 20 * @rem;
        color: #4a4a4a;
      }

      select.form-control {
        height: 100%;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        text-indent: 20 * @rem;
        border-radius: 5 * @rem;
        outline: none;
        border: none;
        color: #4a4a4a;
        appearance: none;
        -webkit-appearance: none;
        padding-left: 20 * @rem;
        background-size: 36 * @rem 36 * @rem;
        option {
          color: #ccc;
          .fontSize(6px);
        }
      }
      select:invalid {
        color: #ccc;
      }
      input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
        color: #ccc;
        .fontSize(14px);
      }
    }
    .form-item:last-child {
      border: none;
    }
    .save-btn {
      .fontSize(14px);
      width: 280 * @rem;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
      background: @primary-color;
      border-radius: 5px;
      border: none;
      color: #fff;
      height: 60 *@rem;
      line-height: 60 * @rem;
      margin-top: 20 * @rem;
    }
  }
}


.toast {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 400 * @rem;
  height: 86 * @rem;
  background: rgba(0, 0, 0, 0.8);
  -webkit-border-radius: 10px;
  text-align: center;
  font-family: PingFangSC-Regular;
  .fontSize(13px);
  color: #ffffff;
  letter-spacing: 0;
  line-height: 86 * @rem;
  z-index: 1001;
}

#mask {
  position: fixed; //利用固定定位的好处：页面还可以上下翻动，但是始终处于灰色背景下
  top: 0;
  left: 0;
  z-index: 1000;
  display: none;
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
}

.dialog{
  display: none;
  background: white;
  width: 600 * @rem;
  height: 570 * @rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;

  .close-btn {
    position: absolute;
    right: 15 * @rem;
    top: 10 * @rem;
    cursor: pointer;
    .iconfont {
      .fontSize(16px);
      color: #666;
    }
  }
  .rules {
    .fontSize(14px);
    padding: 40 * @rem 30 * @rem;
    ul {
      li {
        height: 50 * @rem;
        line-height: 50 * @rem;
      }
    }
    .button {
      height: 60 * @rem;
      line-height: 60 * @rem;
      position: relative;
      margin-top: 40 * @rem;
    }
    .close-btn {
      .fontSize(14px);
      height: 100%;
      width: 280 * @rem;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
      background: #ff9900;
      border-radius: 8 * @rem;
      border: none;
      color: #fff;
    }

  }
}
#rule-dialog {
  background-color: @primary-color;
  color: #fff;
  .close-btn {
    .iconfont {
      .fontSize(16px);
      color: #fff;
    }
  }
}
#patient-dialog {
  width: 690 * @rem;
  height: 680 * @rem;
  padding: 30 * @rem 20 * @rem;
  .info-form {
    width: 100%;
    padding: 0 20 *@rem;
    box-sizing: border-box;
    .form-item {
      height: 80 * @rem;
      .form-item__label {
        .fontSize(14px);
        float: left;
        width: 130 * @rem;
        height: 100%;
        height: 80 * @rem;
        line-height: 110 * @rem;
        text-align: right;
        padding-right: 10px;
        box-sizing: border-box;
      }
      .form-item__content {
        margin-left: 140 * @rem;
        height: 100%;
        border-bottom: 1px solid #ccc;
        box-sizing: border-box;
        input {
          .fontSize(14px);
          height: 100%;
          width: 100%;
          padding: 0;
          padding-top: 25 * @rem;
          box-sizing: border-box;
          border: none;
          text-indent: 20 * @rem;
        }
        .radio-group {
          height: 100%;
          position: relative;
          .fontSize(12px);
          .radio {
            color: #606266;
            font-weight: 500;
            line-height: 1;
            position: relative;
            bottom: 10 * @rem;
            cursor: pointer;
            display: inline-block;
            white-space: nowrap;
            outline: none;
            -moz-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            .radio__input {
              white-space: nowrap;
              cursor: pointer;
              outline: none;
              display: inline-block;
              line-height: 1;
              position: relative;
              vertical-align: middle;
              .radio__inner {
                border: 1px solid #dcdfe6;
                border-radius: 100%;
                width: 26 * @rem;
                height: 26 * @rem;
                background-color: #fff;
                position: relative;
                cursor: pointer;
                display: inline-block;
                box-sizing: border-box;
              }
              .radio__original {
                opacity: 0;
                outline: none;
                position: absolute;
                z-index: -1;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                margin: 0;
              }
              .radio__inner:after {
                width: 12 * @rem;
                height: 12 * @rem;
                border-radius: 100%;
                background-color: #fff;
                content: "";
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%) scale(0);
                transition: transform .15s ease-in;
              }
            }
            .radio__input.is-checked + .radio__label {
              color: #409eff;
            }
            .radio__label {
              .fontSize(12px);
            }
            .radio__input.is-checked .radio__inner:after {
              transform: translate(-50%, -50%) scale(1);
            }
            .radio__input.is-checked .radio__inner {
              border-color: #409eff;
              background: #409eff;
            }
          }
          .left {
            position: absolute;
            left: 20 * @rem;
          }
          .right {
            position: absolute;
            left: 150 * @rem;
          }
        }
      }
    }
    .form-item.radio  {
      .form-item__content {
        border: none;
      }
    }
    .form-item.button {
      height: 60 * @rem;
      position: relative;
      margin-top: 30 * @rem;
      button {
        .fontSize(14px);
        height: 100%;
        width: 280 * @rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        border-radius: 5px;
        border: none;
      }
    }
    .uplaod-btn {
      width: 320 * @rem !important;
      border: 1px solid @borde-color !important;
      background-color: #fff;
    }
    .save-btn {
      background: @primary-color;
      color: #fff;
    }
  }
}





